﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Assets.Script.BattleSystem.SyncModle
{
    public class Vector3
    {
        public float x, y, z;

        public Vector3()
        {
            this.x = 0;
            this.y = 0;
            this.z = 0;
        }

        public Vector3(Vector3 v3)
        {
            x = v3.x;
            y = v3.y;
            z = v3.z;
        }

        public Vector3(ref float x, ref float y, ref float z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }
        public Vector3(float x, float y, float z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }

        public void Multiplication(float value)
        {
            x *= value;
            y *= value;
            z *= value;
        }

        public static implicit operator UnityEngine.Vector3(Vector3 v3){
            return new UnityEngine.Vector3(v3.x, v3.y, v3.z);
        }

        public override string ToString()
        {
            return $"{nameof(x)}: {x}, {nameof(y)}: {y}, {nameof(z)}: {z}";
        }
    }
}
